package cn.hxzy.teacher.controller;

import cn.hxzy.common.domain.vo.ClassUserPrcVo;
import cn.hxzy.common.response.R;
import cn.hxzy.teacher.service.ClassUserPrcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author：GuoYifan
 * @date：2024/8/6-15:39
 * @description：
 */
@RequestMapping("/classUserPrc")
@RestController
public class ClassUserPrcConatroller {
    @Autowired
    private ClassUserPrcService classUserPrcService;

    @GetMapping("/getClass")
    public R getClass(Integer classId){
        ClassUserPrcVo classUserPrcVo = classUserPrcService.getClassUserPrcVo(classId);
        return R.success(classUserPrcVo);
    }
}
